<div class="square">
<h1>Edit nieuwsitem</h1>

<?php
    echo $this->Form->create('Admin', array('action' => 'editNewsItem'));
    echo $this->Form->input('datum',   array('value' => $content['datum']));
    echo $this->Form->input('titel',   array('value' => $content['titel']));
    echo $this->Form->input('content', array('type' => 'textarea', 'value' => $content['content'],'rows' => '15', 'cols' => '50' ) );
    echo $this->Form->input('key', array('type' => 'hidden', 'value' => $content['key']));
    echo $this->Form->input('image', array('type' => 'hidden', 'value' => "none"));
    echo $this->Form->end('Save changes');
?>
</div>

<div class="square">
<h1>Afbeeldingen</h1>

<table>
    <tr>
        <th>Afbeelding</th>
        <th>Acties</th>
    </tr>
    <?php foreach ($images as $image): ?>
    <tr>
        <td>
        <?php 
            echo $this->Html->image('/img/thumb/'.$image['images']['thumb'], array('alt' => 'thumb'));
        ?>
        </td>
        <td>
            <?php echo $this->Html->link('delete', array('action' => 'editNewsItem')); ?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>
</div>